﻿import request from '/@/utils/request';
enum Api {
  AddYnDecision = '/api/ynDecision/add',
  DeleteYnDecision = '/api/ynDecision/delete',
  UpdateYnDecision = '/api/ynDecision/update',
	  PageYnDecision = '/api/ynDecision/page',
  DetailYnDecision = '/api/ynDecision/detail',
}

// 增加决策结果
export const addYnDecision = (params?: any) =>
	request({
		url: Api.AddYnDecision,
		method: 'post',
		data: params,
	});

// 删除决策结果
export const deleteYnDecision = (params?: any) => 
	request({
			url: Api.DeleteYnDecision,
			method: 'post',
			data: params,
		});

// 编辑决策结果
export const updateYnDecision = (params?: any) => 
	request({
			url: Api.UpdateYnDecision,
			method: 'post',
			data: params,
		});

// 分页查询决策结果
export const pageYnDecision = (params?: any) => 
	request({
			url: Api.PageYnDecision,
			method: 'post',
			data: params,
		});

// 详情决策结果
export const detailYnDecision = (id: any) => 
	request({
			url: Api.DetailYnDecision,
			method: 'get',
			data: { id },
		});


